home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / ui / question.h < prev    next >
C/C++ Source or Header  |  1994-08-04  |  2KB  |  71 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    This is part of the shell user-interface for the WAIS software.  Do with it
  6.    as you please.
  7.  
  8.    jonathan@Think.COM
  9. */
  10.  
  11. /* Copyright (c) CNIDR (see ../COPYRIGHT) */
  12.  
  13. /*
  14.  * $Log: question.h,v $
  15.  * Revision 1.2  1994/08/05  07:30:14  pfeifer
  16.  * Release beta 04
  17.  *
  18.  * Revision 1.1  93/06/23  20:02:36  warnock
  19.  * Initial revision
  20.  * 
  21.  * Revision 1.1  1993/02/16  15:09:27  freewais
  22.  * Initial revision
  23.  *
  24.  * Revision 1.2  92/03/12  16:24:47  jonathan
  25.  * Renamed to question.h, as this file is really more like source.h.
  26.  * Updated all function declarations to use ANSI prototypes, if available.
  27.  * 
  28.  */
  29.  
  30. #ifndef _H_QUESTION
  31. #define _H_QUESTION
  32.  
  33. #include <cdialect.h>
  34.  
  35. #ifndef MAX_MESSAGE_LEN
  36. #define MAX_MESSAGE_LEN BUFSZ
  37. #endif
  38.  
  39. typedef struct question{
  40.   char *type;
  41.   char name[STRINGSIZE];
  42.   char keywords[5000];
  43.   char* keywords_used;
  44.   short version;
  45.   short view;
  46.   char* sourcepath;
  47.   int numsources;
  48.   SourceList Sources;
  49.   int CurrentSource;
  50.   int numdocs;
  51.   DocList RelevantDocuments;
  52.   int CurrentRelDoc;
  53.   int numresdocs;
  54.   int maxresdocs;
  55.   DocList ResultDocuments;
  56.   int CurrentResDoc;
  57.   char request_message[MAX_MESSAGE_LEN]; /* arbitrary message limit */
  58.   char response_message[MAX_MESSAGE_LEN]; /* arbitrary message limit */
  59.   SearchResponseAPDU  *query_response;
  60.   SearchResponseAPDU  *retrieval_response;
  61.   WAISSearchResponse  *query_info;
  62.   Boolean modified;
  63. } _Question, *Question;
  64.  
  65. short readRect _AP((Question question, FILE* file));
  66. short ReadQuestion _AP((Question question, FILE* file));
  67. void WriteQuestionfp _AP((FILE* fp, Question question));
  68. void WriteQuestion _AP((char* filename, Question question));
  69.  
  70. #endif
  71.